import {
	defineStore
} from 'pinia'

export const useHandleWorkOrder_Pause = defineStore('useHandleWorkOrder_Pause', {
	state: () => ({
		fileList: [],
		formData: {
			// 原因
			reason: '',
			enclosure: [],
			remark: '',
			// 订单号
			orderNum: '',

		}
	}),
	actions: {
		onDelFile(index) {
			this.fileList.splice(index, 1)
		},
		onUploadFile(f) {
			this.fileList = [...this.fileList, ...f]
		},
	}
})